package rpc

import (
	"context"
	"net/url"
	"time"

	"opencsg.com/csghub-server/common/types"
)

type XnetSvcClient interface {
	GenerateWriteToken(ctx context.Context, req *types.XnetTokenReq) (*types.XnetTokenResp, error)
	PresignedGetObject(ctx context.Context, objectKey string, expireTime time.Duration, params url.Values) (*url.URL, error)
	FileExists(ctx context.Context, objectKey string) (bool, error)
}
